package com.micai.boss.websocket.entity;

/**
 * 描述：
 * <p>
 *
 * @author: 赵新国
 * @date: 2018/5/22 10:08
 */
public class ChatMessage {

    // 消息类型
    private MessageType type;

    // 消息内容
    private String content;

    // 消息发送者
    private String sender;

    public enum MessageType {
        CHAT,
        JOIN,
        LEAVE
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }


}
